import { defineComponent } from "vue";
import "./LeftMenu.less";
import LeftItem from "./LeftItem";
import { getComponents } from "../schema/components";

export default defineComponent({
  setup(props, ctx) {
    let components = getComponents();
    return () => (
      <div class="left-menu">
        {components.map((item) => (
          <LeftItem component={item}></LeftItem>
        ))}
      </div>
    );
  },
});
